﻿using HealthChecks.Prometheus.Metrics.Extensions;
using Microsoft.AspNetCore.Builder;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace MicroServiceHealthCheck.MiddleWares
{
    public static class HealthChecksMiddleWares
    {
        public static void UsePrometheusExporter(this IApplicationBuilder app) 
        {
            // You could customize the endpoint
            app.UseHealthChecksPrometheusExporter("/health-metrics");
        }
    }
}
